package mail.fetch.netease;

/**
 * @author: Hanjiafeng
 * @date: Created in 14:33 2019/3/8
 * @desc: 邮箱选择器
 */
class MailSwitcher {

    /**
     * 根据邮箱类型,选择参数
     *
     * @param mailType 邮箱类型
     * @param p163     163
     * @param p126     126
     * @param pYeah    yeah
     * @return 参数
     */
    static String switchParameter(MailType mailType, String p163, String p126, String pYeah) {
        switch (mailType) {
            case MAIL_163:
                return p163;
            case MAIL_126:
                return p126;
            case MAIL_YEAH:
                return pYeah;
            default:
                return "Cannot reachable";
        }
    }
}
